/**
 * This formats things like vote count and view count. Slightly different from rep count
 * in that it doesn't have a number after the decimal point
 */
require.def('formatter/votecount', [], function(){
    return{
        format:function(count){
            if ( typeof count == "string" ){
                count = parseInt(count, 10);
            }
            if ( count > 999 ){
                count /= 100;
                count = Math.round(count) + 'k';
            }
            return count
        }
    };
});
